package com.mapbased.wfw.bind;

import com.mapbased.wfw.*;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: mapbased.com</p>
 *
 * @author chy_hs(Baily)
 * @deprecated :beacuse i think it's useless
 * @version 1.0
 */
public class ResBinding
    implements Binding
{

    /**
     * getValue
     *
     * @param context RenderContext
     * @return Object
     * @todo Implement this com.mapbased.wfw.Binding method
     */
    String key;
    String cache;
    public ResBinding(String key)
    {
        this.key=key;
    }

    public Object getValue(RenderContext rc)
    {
        if(cache == null)
        {
            cache=rc.getPageHandler().getString(key);

        }
        return cache;
    }
}
